/* 本地资源页面样式 */

.resource-item {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.resource-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.resource-item img {
    transition: filter 0.2s ease-in-out;
}

.resource-item:hover img {
    filter: brightness(1.05);
}

/* 响应式调整 */
@media (max-width: 640px) {
    #resources-grid {
        grid-template-columns: 1fr !important;
    }
}

@media (min-width: 641px) and (max-width: 768px) {
    #resources-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    #resources-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

/* 加载动画 */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.loading {
    animation: pulse 1.5s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* 标签样式增强 */
.tag {
    transition: transform 0.1s ease-in-out;
}

.tag:hover {
    transform: scale(1.05);
}

/* 操作按钮样式 */
.resource-item button {
    transition: all 0.2s ease-in-out;
}

.resource-item button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* 搜索和筛选区域的样式增强 */
#resource-search:focus,
#resource-type:focus,
#sort-option:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 自定义滚动条（如果需要） */
#resources-grid {
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 #f1f5f9;
}

#resources-grid::-webkit-scrollbar {
    width: 6px;
}

#resources-grid::-webkit-scrollbar-track {
    background: #f1f5f9;
}

#resources-grid::-webkit-scrollbar-thumb {
    background-color: #cbd5e1;
    border-radius: 3px;
}

/* 卡片阴影增强已在base.css中定义 */

.resource-item {
    border-radius: 0.75rem;
    overflow: hidden;
}